package file;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/4/8
 * \* Time: 19:11
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
public class Demo9 {
    public static void main(String[] args) {
        try (OutputStream outputStream = new FileOutputStream("d:/a.txt")){
//            outputStream.write(97);
//            outputStream.write(98);
//            outputStream.write(99);
            byte[] buffer = new byte[]{97,98,99};
            outputStream.write(buffer);
        }catch (IOException e) {
            e.printStackTrace();
        }
    }
}
